local opts = { noremap = true, silent = true }

local keymap = vim.api.nvim_set_keymap

--设置leader键
keymap("n", "<Space>", '<cmd>lua require("which-key").show(" ", {mode = "n", auto = true})<cr>', opts)
vim.g.mapleader = " "
vim.g.maplocalleader = " "

-- 模式切换
keymap('i', 'jk','<ESC>', opts)
-- 保持选取
keymap('v', '<','< | gv', opts)
keymap('v', '>','> | gv', opts)
-- tab移动
keymap('n', 'L','<cmd>BufferLineCycleNext<cr>', opts)
keymap('n', 'H','<cmd>BufferLineCyclePrev<cr>', opts)